﻿using System;

namespace Helper
{
    public partial class Box : CCWin.Skin_Mac
    {
        public delegate void InputMessageHandler(string message);
        public event InputMessageHandler OnInputMessage;
        public Box(string title, int value = 0)
        {
            InitializeComponent();
            this.Text = title;
            txbMessage.Text = value.ToString();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            this.OnInputMessage(this.txbMessage.Text);
            this.Close();
        }
    }
}
